package com.bskj.common.bean.model;

import java.util.Date;

/**
 * Created by mocaijin on 19/01/2018.
 */
public class ShopCoupon extends BaseJSONModel {

    private Integer id;
    private Date createTime; // 录入时间
    private Date updateTime; // 更新时间
    private Integer parkingLotCustomerId; //停车场ID
    
    private Integer couponMoneyType = 1; //停车劵规则类型（1-看优惠金额 2-全免  3-免费时间）
    
    private Integer money;  //停车券面额（单位角）
    private Integer validType; //生效类型（1-领取后一定时间内有效  2-领取后当天固定时间内有效）
    private Double validTime;  //领取以后的有效时间（单位小时。valid_type为1的时候有效）
    private String lastTime; //领取以后当天最后有效时间（格式为 HH:mm valid_type为2的时候生效）
    private Integer status;  //停车券状态（1-有效 2-无效  3-删除）
    private Integer limitModeType = 1;  //发放限制的模式（1-单位时间内发放张数限制  2-库存模式）
    private Integer inventory;  //库存量 （当limit_mode_type为2时有效）
    
    private Integer couponLimitType; //张数限制类型（1-每天 2-每周  3-每月 4-每年）  （limit_mode_type为1时生效）
    private Integer couponLimitNum;  //限制张数数量  单位：张 （limit_mode_type为1时生效）
    private Integer shopId; //商家ID

    private String typeDesc;
    private String encryptParams;
    private Integer userId;
   
    
    
    @Column
    public Integer getCouponMoneyType() {
		return couponMoneyType;
	}

	public void setCouponMoneyType(Integer couponMoneyType) {
		this.couponMoneyType = couponMoneyType;
	}

	@Column
    public Integer getCouponLimitType() {
		return couponLimitType;
	}

	public void setCouponLimitType(Integer couponLimitType) {
		this.couponLimitType = couponLimitType;
	}
	@Column
	public Integer getCouponLimitNum() {
		return couponLimitNum;
	}

	public void setCouponLimitNum(Integer couponLimitNum) {
		this.couponLimitNum = couponLimitNum;
	}

	@Column
    public Integer getShopId() {
		return shopId;
	}

	public void setShopId(Integer shopId) {
		this.shopId = shopId;
	}

	@Column
	public Double getValidTime() {
		return validTime;
	}

	public void setValidTime(Double validTime) {
		this.validTime = validTime;
	}
	@Column
	public String getLastTime() {
		return lastTime;
	}

	public void setLastTime(String lastTime) {
		this.lastTime = lastTime;
	}
	
	public String getTypeDesc() {
        return typeDesc;
    }

    public void setTypeDesc(String typeDesc) {
        this.typeDesc = typeDesc;
    }

    public String getEncryptParams() {
        return encryptParams;
    }

    public void setEncryptParams(String encryptParams) {
        this.encryptParams = encryptParams;
    }
    @Column
    public Integer getParkingLotCustomerId() {
        return parkingLotCustomerId;
    }

    public void setParkingLotCustomerId(Integer parkingLotCustomerId) {
        this.parkingLotCustomerId = parkingLotCustomerId;
    }
    @Column
    public Integer getMoney() {
        return money;
    }

    public void setMoney(Integer money) {
        this.money = money;
    }
    @Column
    public Integer getValidType() {
        return validType;
    }

    public void setValidType(Integer validType) {
        this.validType = validType;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    
    
    @Column
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    @Column
    @Override
    public Integer getId() {
        return id;
    }

    @Override
    public void setId(Integer id) {
        this.id = id;
    }
    @Column
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    @Column
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Column
	public Integer getLimitModeType() {
		return limitModeType;
	}

	public void setLimitModeType(Integer limitModeType) {
		this.limitModeType = limitModeType;
	}

	@Column
	public Integer getInventory() {
		return inventory;
	}

	public void setInventory(Integer inventory) {
		this.inventory = inventory;
	}
}
